//
//  recommendCell.m
//  Gegeda_music_MY
//
//  Created by lanou3g on 15/11/8.
//  Copyright © 2015年 周莹. All rights reserved.
//

#import "recommendCell.h"

@implementation recommendCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        [self creatChild];
       //   self.backgroundColor = [UIColor purpleColor];
    }
    return  self;
}


-(void)creatChild
{
    self.iconImage = [[UIImageView alloc]initWithFrame:CGRectMake(5, 10, 80, 80)];
   // self.imageView.image = [UIImage imageNamed:@"大图"];
    self.iconImage.backgroundColor = [UIColor redColor];
    [self addSubview:self.iconImage];
    
    self.titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(95, 10, 250, 20)];
  //  self.titleLabel.backgroundColor = [UIColor blueColor];
    self.titleLabel.font = [UIFont systemFontOfSize:15.0f];
    [self addSubview:self.titleLabel];
    
    self.introLabel = [[UILabel alloc]initWithFrame:CGRectMake(95, 40, 250, 20)];
  //  self.introLabel.backgroundColor = [UIColor blueColor];
    self.introLabel.textColor = [UIColor grayColor];
    self.introLabel.font = [UIFont systemFontOfSize:12.0f];
    [self addSubview:self.introLabel];
    
    
    self.userImage = [[UIImageView alloc]initWithFrame:CGRectMake(95, 78, 10, 10)];
   // self.userImage.backgroundColor = [UIColor redColor];
    self.userImage.image = [UIImage imageNamed:@"三角"];
    [self addSubview:self.userImage];
    
    self.userLabel = [[UILabel alloc]initWithFrame:CGRectMake(112, 75, 65, 15)];
   // self.userLabel.backgroundColor = [UIColor blueColor];
    self.userLabel.font = [UIFont systemFontOfSize:10.0f];
    self.userLabel.textColor = [UIColor grayColor];
    [self addSubview:self.userLabel];

//    self.userImage.image = [UIImage imageNamed:@"三角"];
//    NSLog(@"%@",self.userLabel.text);
//    if ([self.userLabel.text integerValue] == 0)
//    {
//    
//        
//        self.userLabel.text = @"";
//        self.userImage.hidden = YES;
//    }

    
    self.setImage = [[UIImageView alloc]initWithFrame:CGRectMake(182, 78, 10, 10)];
   // self.setImage.backgroundColor = [UIColor redColor];
    self.setImage.image = [UIImage imageNamed:@"集"];
    [self addSubview:self.setImage];
    
    self.setLabel = [[UILabel alloc]initWithFrame:CGRectMake(202, 75, 65, 15)];
  //  self.setLabel.backgroundColor = [UIColor blueColor];
    self.setLabel.textColor = [UIColor grayColor];
    self.setLabel.font = [UIFont systemFontOfSize:10.0f];
    [self addSubview:self.setLabel];
    
//    if (self.setLabel.text.length)
//    {
//        self.setImage.image = [UIImage imageNamed:@""];
//        
//    }
//    else
//    {
//       self.setImage.image = [UIImage imageNamed:@"集"];
//    }
    
//    if ((NSInteger)self.userLabel.text > 10000)
//    {
//        self.userLabel.text =  self.userLabel.text. / 10000;
//    }
    
}


@end
